{% extends 'base.html' %}
{% load markup %}

{% block title %}{{unit.title}} :: UCSB Department{% endblock %}

{% block content %}

   
   <h2>{{unit.title}}</h2>
   
   {% if pages_list %}
   <div id="inset">
   <h4>Additional {{unit.title}} pages</h4>
      <ul>
      {% for p in pages_list %}
         <li><a href="{{p.get_absolute_url}}">{{p.title}}</a></li>
      {% endfor%}
      </ul>
   </div>
   {% endif %}
   
   
   <h3>About</h3>
      <p> {{unit.vision_statement|textile}}</p>

   {% if files_list %}
   <div id="files">
   <h4>{{u.title}} Resources</h4>
      <ul>
      {% for f in files_list %}
         <li><a href="{{f.resource}}">{{f.name}}</a></li>
      {% endfor%}
      </ul>
   </div>
   {% endif %}
   
   <h4>Staff</h4>
      <ul id="staff">
      {% for e in unit.employees.all %}
         <li><a href="{{e.get_absolute_url}}">{{e.name_first}} {{e.name_last}}</a> - {{e.job_title}}</li>
      {% endfor%}
      </ul>

{% endblock %}